package com.zhu.wx.dict;

import com.zhu.wx.service.*;
import com.zhu.wx.strategy.WxResStrategy;

/**
 * 响应枚举
 */
public enum WxResEnum {

    NEWS("news", "图文消息", WxResArticleService.class),
    MUSIC("music", "音乐消息", WxResMusicService.class),
    VIDEO("video", "视频消息", WxResVideoService.class),
    VOICE("voice", "语音消息", WxResVoiceService.class),
    IMAGE("image", "图片消息", WxResImageService.class),
    TEXT("text", "文本消息", WxResTextService.class);


    private String name;
    private String desc;
    private Class<WxResStrategy> clazz;


    WxResEnum(String name, String desc, Class clazz) {
        this.name = name;
        this.desc = desc;
        this.clazz = clazz;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Class<WxResStrategy> getClazz() {
        return clazz;
    }

    public void setClazz(Class<WxResStrategy> clazz) {
        this.clazz = clazz;
    }
}
